#time,datetime,calendar
#time.time()
#datetime.datetime.now()
#now().strftime('%Y-%m-%d ** %H:%M:%S')
# datetime.datetime.strptime 把字符串转变为对象
import datetime,time
now = datetime.datetime.now()
print(type(now))
print(now)
now__ = now.strftime('%Y%m%d  %H %M %S')
print(now__)

print(datetime.datetime.now().year)
print(datetime.datetime.now().weekday())

day_obj = datetime.datetime.strptime('2018-6-24','%Y-%m-%d')
print(day_obj.weekday())

print(type(time.localtime()))
print(time.localtime())
time_obj = time.strptime('2025 06 10','%Y %m %d')
print(type(time_obj))